package com.boot.config;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class AdminCredentials {
    private final String username;
    private final String encodedPassword;

    public AdminCredentials(String username, String rawPassword, BCryptPasswordEncoder passwordEncoder) {
        this.username = username;
        this.encodedPassword = passwordEncoder.encode(rawPassword);
    }

    public String getUsername() {
        return username;
    }

    public String getEncodedPassword() {
        return encodedPassword;
    }
}
